package com.cloud.salon.client.authority.repository;

import com.cloud.salon.common.base.entity.authority.relation.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description 用户角色关联仓库
 * @Author wolf--LZH
 * @CreateDate 2019/5/3 0003 下午 3:45
 */
public interface UserRoleRepository extends JpaRepository<UserRole, Integer> {

    @Transactional
    void deleteByUserIdAndRoleId(Integer userId, Integer roleId);
}
